package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.user_system.code.BaseEntity;
import com.ly.user_system.detail.BaseSysDepartmentDetail;
import com.ly.user_system.dto.BaseSysDepartmentDTO;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

@TableName("base_sys_department")
@Data
@AutoMappers({
        @AutoMapper(target = BaseSysDepartmentDTO.class),
        @AutoMapper(target = BaseSysDepartmentDetail.class)
})
public class BaseSysDepartment extends BaseEntity {


    @TableField("name")
    private String name;
    @TableField("parent_id")
    private Long parentId;
    @TableField("order_num")
    private Integer orderNum;
}